<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@include file="/common/common.jsp"%>
<h:css href="/css/style1/style-custom.css"/>
<%@include file="/common/skins/skin0/component.jsp" %>
<html>
<!-- 
  - Date: 2012-08-26 08:50:18
  - Description:
-->
<head>
  <title>在住客人报表</title> 
</head>
<body>
  
  
    <e:datasource name="criteria" type="entity" path="com.primeton.das.criteria.criteraiType" />
    <e:datasource name="page" type="entity" path="com.eos.foundation.PageCond" />
    <queryform id= "b187c7db-5f71-47e3-89fa-fdfe7c69d699">
      <h:form  name="query_form" action="com.hms.report.membersalestotal.flow" checkType="blur" target="_self" method="post" onsubmit="return checkCond(this);">
        <input type="hidden" name="_eosFlowAction" value="pageQuery"/>

          <table align="center" border="0" width="100%" class="form_table">
            <tr>
              <td class="form_label">
                会员编号
              </td>
              <td colspan="1">
                <h:text property="criteria/_expr[1]/cmembercode"/>
                <h:hidden property="criteria/_expr[1]/_op" value="like"/>
                <h:hidden property="criteria/_expr[1]/_likeRule" value="all"/>
              </td>
              <td class="form_label">
                会员名称
              </td>
              <td colspan="1">
                <h:text property="criteria/_expr[2]/cmembername"/>
                <h:hidden property="criteria/_expr[2]/_op" value="like"/>
                <h:hidden property="criteria/_expr[2]/_likeRule" value="all"/>
              </td>
              
              <td class="form_label">
                开始日期
              </td>
              <td colspan="1">
                <w:date property="criteria/_expr[3]/_min"/>
                <input type="hidden" name="criteria/_expr[3]/ddepdate" value="">
                <h:hidden property="criteria/_expr[3]/_pattern" value="yyyy-MM-dd"/>              
              </td>     
              
              <td class="form_label">
                结束日期
              </td>
              <td colspan="1">
                <w:date property="criteria/_expr[3]/_max"/>
              </td>  
                                  
            </tr>                        
            <tr class="form_bottom">
              <td colspan="8" class="form_bottom">
                <input type="hidden" name="criteria/_entity" value="com.hms.report.rptdataset.WeOrderRoomAllInfoV">
                每页显示
                <h:text size="2" property="page/length" value="10" validateAttr="minValue=1;maxValue=100;type=integer;isNull=true" />
                <input type="hidden" name="page/begin" value="0">
                <input type="hidden" name="page/isCount" value="true">
                <input type="submit" value="查询" class="button">
              </td>
            </tr>
          </table>
    
      </h:form>
    </queryform>
    <br/>
    <viewlist id= "c982df22-9e5b-4902-8ad9-b6934e059711">
      <h:form name="page_form" action="com.hms.report.membersalestotal.flow" method="post">
        <input type="hidden" name="_eosFlowAction" value="query" >
        <h:hiddendata property="criteria" />
        <h:hidden property="page/begin"/>
        <h:hidden property="page/length"/>
        <h:hidden property="page/count"/>
        <h:hidden property="page/isCount"/>

          <table align="center" border="0" width="100%" class="EOS_table">
            <tr>
              <th>
                会员号
              </th>
              <th >
                会员名称
              </th>              
              <th>
                销售额
              </th>                                                            
            </tr>
            
            <l:iterate property="salesdata" id="id1">
            <tr class="<l:output evenOutput='EOS_table_row' />">
               <td><b:write property="cmembercode" iterateId="id1"/></td>
               <td><b:write property="cmembername" iterateId="id1"/></td>
               <td><b:write property="sum_salesAmount" iterateId="id1"/></td>                                
            </tr>
            </l:iterate>
            
            <tr>
              <td colspan="7" class="command_sort_area">
                <div style="float:right">
                  <l:equal property="page/isCount" targetValue="true">
                    共
                    <b:write property="page/count"/>
                    条记录 第
                    <b:write property="page/currentPage"/>
                    页/
                    <b:write property="page/totalPage"/>
                    页
                  </l:equal>
                  <l:equal property="page/isCount" targetValue="false">
                    第
                    <b:write property="page/currentPage"/>
                    页
                  </l:equal>
                  <input type="button" onclick="firstPage('page', 'pageQuery', null, null, 'page_form');" value="首页"  <l:equal property="page/isFirst" targetValue="true">disabled</l:equal> >
                  <input type="button" onclick="prevPage('page', 'pageQuery', null, null, 'page_form');" value="上页" <l:equal property="page/isFirst" targetValue="true">disabled</l:equal> >
                  <input type="button" onclick="nextPage('page', 'pageQuery', null, null, 'page_form');" value="下页" <l:equal property="page/isLast" targetValue="true">disabled</l:equal> >
                  <l:equal property="page/isCount" targetValue="true">
                    <input type="button" onclick="lastPage('page', 'pageQuery', null, null, 'page_form');" value="尾页" <l:equal property="page/isLast" targetValue="true">disabled</l:equal> >
                  </l:equal>
                </div>
              </td>
            </tr>
          </table>

      </h:form>
    </viewlist>
    <script>
       function checkCond(frm){
         return checkForm(frm);
       }
    </script>
      
</body>

</html>
